//
//  SSMoreGameScene.m
//  SGF
//
//  Created by shanshan on 10-6-9.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "SSMoreGameScene.h"
#import "SSMenuScene.h"


@implementation SSMoreGameScene

- (id) init
{
	self = [super init];
	if (self != nil) {
		CCSprite *bg = [CCSprite spriteWithFile:@"background.png"];
		bg.position = ccp(240, 160);
		[self addChild:bg];
		CCLabel *label = [CCLabel labelWithString: NSLocalizedString(@"more game scene", @"more game scene") fontName:@"Arial" fontSize:13];
		label.position = ccp(240,300);
		[self addChild:label];
		
		//[MenuItemFont setFontName:@"Arial"];
		[CCMenuItemFont setFontSize:20];
		
		CCMenuItem *menuItem1 = [CCMenuItemFont itemFromString: NSLocalizedString(@"Back to Main", @"Back to Main") target:self selector:@selector(onMain:)];
		
		CCMenu *menu = [CCMenu menuWithItems:menuItem1, nil];
		[menu alignItemsVerticallyWithPadding:10];
		menu.position = ccp(240,20);
		[self addChild:menu];
	}
	return self;
}

- (void)onMain:(id)sender
{
	CMLog(@"on main");
	[[CCDirector sharedDirector] replaceScene:[SSMenuScene node]];
}

@end
